home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Game / Thing / CVehicleTruckFlatbed.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  2.3 KB  |  98 lines

  1. package Local.Game.Thing
  2. {
  3.    import Local.Game.World.CPosition;
  4.    
  5.    public class CVehicleTruckFlatbed extends CVehicle
  6.    {
  7.        
  8.       
  9.       private var mTrackSoundID:String;
  10.       
  11.       public function CVehicleTruckFlatbed(param1:CPosition)
  12.       {
  13.          super(param1);
  14.          mType = "truckflatbed";
  15.          Process = Process_Normal;
  16.          mMaxSpeed = (15 + Math.random() * 4) * mSpriteScalar * mEnemySpeed;
  17.          mSpeed = 0;
  18.          ┬º┬ºpush(┬º┬ºfindproperty(mAcceleration));
  19.          ┬º┬ºpush(0.1);
  20.          if(true)
  21.          {
  22.             ┬º┬ºpush(┬º┬ºpop() * mEnemySpeed);
  23.          }
  24.          ┬º┬ºpop().mAcceleration = ┬º┬ºpop();
  25.          mOrientation = -1;
  26.          mMaxLife = mLife = 200;
  27.          AddAnimation("stand",TruckFlatbed,"AddSprite_Black");
  28.          SetCollisionBySprite(mAnimation[0]);
  29.          CompileNodes();
  30.          IncrementBuild();
  31.       }
  32.       
  33.       override public function Dispose() : void
  34.       {
  35.          if(true)
  36.          {
  37.             if(mDisposed)
  38.             {
  39.                if(true)
  40.                {
  41.                   return;
  42.                }
  43.             }
  44.             super.Dispose();
  45.          }
  46.       }
  47.       
  48.       override public function Draw() : void
  49.       {
  50.          if(true)
  51.          {
  52.             super.Draw();
  53.             DrawSprite(GetOrientationMatrix());
  54.          }
  55.       }
  56.       
  57.       public function Process_Normal() : void
  58.       {
  59.          var _loc1_:* = false;
  60.          if(Process_State != null)
  61.          {
  62.             Process_State();
  63.          }
  64.          VehicleMove();
  65.          if(mDisposed)
  66.          {
  67.             return;
  68.          }
  69.          mCollide.Update();
  70.          ┬º┬ºpush(mDead);
  71.          if(true)
  72.          {
  73.             _loc1_ = ┬º┬ºpop();
  74.             if(GetThings_Distance(60,1).length)
  75.             {
  76.                _loc1_ = true;
  77.             }
  78.             ┬º┬ºpush(_loc1_);
  79.          }
  80.          if(┬º┬ºpop())
  81.          {
  82.             AddThing(new CEffectExplosionLarge(mPosition.Clone()));
  83.             DispatchDispose();
  84.          }
  85.       }
  86.       
  87.       override public function get mPrize() : int
  88.       {
  89.          return CPeepM16.mCost * 10;
  90.       }
  91.       
  92.       override public function get mBaseDamage() : Number
  93.       {
  94.          return 200;
  95.       }
  96.    }
  97. }
  98.